package grape.attend.rest.user.vo;
import grape.base.service.dict.api.IDictService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import grape.common.service.trans.impl.DatetimeTransServiceImpl;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 用户加班表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户加班表数据响应对象")
public class UserOvertimeVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "班次日期")
    private Date classeDate;

    @TransBy(type = DatetimeTransServiceImpl.trans_date,byFieldName = "classeDate")
    @ApiModelProperty(value = "班次日期文本")
    private String classeDateTxt;

    @ApiModelProperty(value = "打卡记录id")
    private String userClockId;

    @ApiModelProperty(value = "考勤组id")
    private String groupId;

    @ApiModelProperty(value = "开始时间")
    private Long startAt;

    @TransBy(type = DatetimeTransServiceImpl.trans_datetime,byFieldName = "startAt")
    @ApiModelProperty(value = "开始时间文本")
    private String startAtTxt;

    @ApiModelProperty(value = "结束时间")
    private Long endAt;

    @TransBy(type = DatetimeTransServiceImpl.trans_datetime,byFieldName = "endAt")
    @ApiModelProperty(value = "结束时间文本")
    private String endAtTxt;

    @ApiModelProperty(value = "扣除休息时间分钟数")
    private Integer deductRestTime;

    @ApiModelProperty(value = "是否有效")
    private Boolean isEffect;

    @ApiModelProperty(value = "是否需要审批")
    private Boolean isApprove;

    @ApiModelProperty(value = "审批状态字典id")
    private String approveStatusDictId;

    @TransBy(type = IDictService.trans_dictName,byFieldName = "approveStatusDictId")
    @ApiModelProperty(value = "审批状态字典名称")
    private String approveStatusDictName;

    @ApiModelProperty(value = "备注")
    private String remark;


}
